package com.dcms.admin.dao;

import com.dcms.admin.bean.Article;

import java.util.List;
import java.util.Map;

public interface ArticleMapper {
    int deleteByPrimaryKey(Integer articleId);

    int insert(Article record);

    int insertSelective(Article record);

    Article selectByPrimaryKey(Integer articleId);

    int updateByPrimaryKeySelective(Article record);

    int updateByPrimaryKeyWithBLOBs(Article record);

    int updateByPrimaryKey(Article record);

    List<Article> selectAll(Map map);

    /**
     * 根据 articleIds 批量删除
     * @param articleIds
     * @return
     */
    int deleteByPrimaryKeyBatch(List<String> articleIds);
}